<template>
  <div id="app">
    App
    <hr/>
    <Child1 :age="age"/>
    <Child2 @changeAge="age = $event"/>
  </div>
</template>

<script>
import Child1 from './components/Child1'
import Child2 from './components/Child2'
export default {
  name: 'App',
  components: {
    Child1,
    Child2
  },
  data() {
    return {
      age: 18
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
